import request from '@/router/axios'
import {getLineLists, getStationLists,getLineListsEpm} from "./reportMondify/reportMistakeInfo";
import Vue from 'vue';
import store from '@/store';

let lineAll=[];
let stationAll=[];
export let allStatus=JSON.parse(localStorage.getItem("allStatus")?localStorage.getItem("allStatus"):"{}");
  getLineAll();//初始化线路
  getStationAll();//初始化车站
  getSysDictItemList();
export  function getLineCodes(){
  let p={};
  p.userCode=store.getters.userInfo.userCode;
  return getLineLists(p).then( (res)=>{
      return res.data.data;
  });
}

export  function getLineCodesEpm(){
  return getLineListsEpm().then( (res)=>{
      return res.data.data;
  });
}

export function getgetStationCodes(v){ //参数为线路
  let p={};
  p.userCode=store.getters.userInfo.userCode;
  p.lineCode=v;
  return getStationLists(p).then((res)=>{
    return res.data.data;
  })
}
/**
 * 线路的所有数据
 * @param query
 */
export function getLineAll(query){
  return request({
    url: '/check/check/getLineAll',
    method: 'post',
    params: query
  }).then(res=>{
    lineAll=res.data;
  });
}
/**
 * 线路的所有数据-直接返回
 * @param query
 */
export function getLineAllAsyn(query){
  return request({
    url: '/check/check/getLineAll',
    method: 'post',
    params: query
  })
}
//查看是否正在自动提交
export function getAutoSubmitFlag(query) {
  return request({
    url: '/check/xw_js_tvm/getAutoSubmitFlag',
    method: 'post',
    params: query,
    data:query
  })
}
/**
 * 车站的所有数据
 * @param query
 */
export function getStationAll(query){
  return  request({
    url: '/check/check/getStationAll',
    method: 'post',
    params: query
  }).then(res=>{
  stationAll=res.data;
  });
}

/**
 * 根据主数据code编码获取主数据列表
 * @param query
 */
export function getSysDictItemListToDict(query){
  return  request({
    url: '/check/check/getSysDictItemList',
    method: 'post',
    params: query
  });
}

/**
 * 根据车站code查询车站信息
 * @param query
 */
export function getStationByCode(query){
  return  request({
    url: '/check/check/getStationByCode',
    method: 'post',
    data: query,
    params: query
  });
}

/**
 * 根据线路code和车站code查询车站信息
 * @param query
 */
 export function getLineAndStationByCode(query){
  return  request({
    url: '/check/check/getLineAndStationByCode',
    method: 'post',
    data: query,
    params: query
  });
}

/**
 * 所有的状态映射
 * @param query
 */
export function getSysDictItemList(query){
  return  request({
    url: '/check/check/getSysDictMapping',
    method: 'post',
    params: query
  }).then(res=>{
    localStorage.setItem("allStatus",JSON.stringify(res.data.data));
    allStatus=res.data.data;
  });
}


/**
 * 取出线路对应数据
 * @param code
 * @returns {*}
 */
export function getLineName(code){
  for(let i=0;i<lineAll.length;i++){
    if(code==lineAll[i].code){
      return lineAll[i].name;
    }
  }
  return code;
}
/**
 * 取出车站对应数据
 * @param code
 * @returns {*}
 */
export function getStationName(lineCode,code){
  for(let i=0;i<stationAll.length;i++){
    if(lineCode== stationAll[i].lineCode && code==stationAll[i].code){
      return stationAll[i].name;
    }
  }
  return code;
}

/**
 * tvm编号
 * @returns {PromiseLike<any> | Promise<any>}
 */
export function getSwPmTvmCodeList(query){
  return  request({
    url: '/check/check/getSwPmTvmCodeList',
    method: 'post',
    params: query
  });
}
/**
 * 查询售票员
 * */
export function getSysUserToLS(query){
  return  request({
    url: '/check/check/getSysUserToLS',
    method: 'post',
    params: query
  });
}

//协查状态
// export const xieChaStatus=[{label:'待协查',"value":1},
//   {label:'协查中',"value":2},
//   {label:'已协查',"value":3}
// ];
export function xieChaStatus(){
  return allStatus['ASSIST_INVEST_STATUS'];
}
export function getXieChaStatusFormat(value){
  let xieChaStatus1=xieChaStatus();
  for(let i=0;i<xieChaStatus1.length;i++){
    if(value==xieChaStatus1[i].value){
      return xieChaStatus1[i].label;
    }
  }
  return '';
}

export function wogzyys(){
  return allStatus['work_other_failure_operator'];
}
export function getWOGZYYS(value){
  let yys=wogzyys();
  for(let i=0;i<yys.length;i++){
    if(value==yys[i].value){
      return yys[i].label;
    }
  }
  return '';
}

export function sjlx(){
  return allStatus['stm_other_data_type'];
}
export function getSJLX(value){
  let shujuleixing=sjlx();
  for(let i=0;i<shujuleixing.length;i++){
    if(value==shujuleixing[i].value){
      return shujuleixing[i].label;
    }
  }
  return '';
}
export function csyy(){
  return allStatus['stm_other_happen_cause'];
}
export function getCSYY(value){
  let chanshengyuanyin=csyy();
  for(let i=0;i<chanshengyuanyin.length;i++){
    if(value==chanshengyuanyin[i].value){
      return chanshengyuanyin[i].label;
    }
  }
  return '';
}
export function tkyy(){
  return allStatus['work_ticket_handle_type'];
}
export function getTKYY(value){
  let tuikuanyuanyin=tkyy();
  for(let i=0;i<tuikuanyuanyin.length;i++){
    if(value==tuikuanyuanyin[i].value){
      return tuikuanyuanyin[i].label;
    }
  }
  return '';
}
export function gzyys(){
  return allStatus['stm_failure_operator'];
}
export function getGZYYS(value){
  let guzhangyunyingshang=gzyys();
  for(let i=0;i<guzhangyunyingshang.length;i++){
    if(value==guzhangyunyingshang[i].value){
      return guzhangyunyingshang[i].label;
    }
  }
  return '';
}
export function pz(){
  return allStatus['sw_pm_ticket_card_type'];
}
export function getPZ(value){
  let piaozhong=pz();
  for(let i=0;i<piaozhong.length;i++){
    if(value==piaozhong[i].value){
      return piaozhong[i].label;
    }
  }
  return '';
}

//反馈状态
// export const replayStatus=[{label:'已反馈',"value":1}, {label:'未反馈',"value":0}];
export function replayStatus(){
  return allStatus['jd_reply_status'];
}
export function getreplayStatusFormat(value){
  let replayStatus1=replayStatus();
  for(let i=0;i<replayStatus1.length;i++){
    if(value==replayStatus1[i].value){
      return replayStatus1[i].label;
    }
  }
  return '';
}


//原因类型
// export const electromeReasons=[{label:'人为原因',"value":1}, {label:'系统原因',"value":2}];
export function electromeReasons(){
  return allStatus['electrome_reasons'];
}
export function getElectromeReasons(value){
  let electromeReasons1=electromeReasons();
  for(let i=0;i<electromeReasons1.length;i++){
    if(value==electromeReasons1[i].value){
      return electromeReasons1[i].label;
    }
  }
  return '';
}

//替换状态
// export const repalceStatus=[{label:'已替换',"value":1}, {label:'未替换',"value":0}];
export function repalceStatus(){
  return allStatus['replace_status'];
}
export function getRepalceStatus(value){
  let repalceStatus1=repalceStatus();
  for(let i=0;i<repalceStatus1.length;i++){
    if(value==repalceStatus1[i].value){
      return repalceStatus1[i].label;
    }
  }
  return '';
}

//审批状态
// export const approveStatus=[{label:'已申请',"value":1}, {label:'待审批',"value":2}
// , {label:'审批通过',"value":3}, {label:'审批不通过',"value":4}];
export function approveStatus(){
  return allStatus['approve_status'];
}
//线网查看审批状态
export function approveStatusBelong(){
  return allStatus['approve_status_belong'];
}

export function getApproveStatus(value){
  let approveStatus1=approveStatus();
  for(let i=0;i<approveStatus1.length;i++){
    if(value==approveStatus1[i].value){
      return approveStatus1[i].label;
    }
  }
  return '';
}

//售票员确认通知-补款状态
// export const is_sup_payment=[{label:'未补款',"value":0}, {label:'已补款',"value":1}];
export function is_sup_payment(){
  return allStatus['is_sup_payment'];
}
export function getIs_sup_payment(value){
  if(value==null){
    value = '0';
  }
  let is_sup_payment1=is_sup_payment();
  for(let i=0;i<is_sup_payment1.length;i++){
    if(value==is_sup_payment1[i].value){
      return is_sup_payment1[i].label;
    }
  }
  return '';
}


//卸载状态1：已卸载
// 2：未卸载
// 3：未卸载/已卸载
// export const uninstall=[{label:'已卸载',"value":1}, {label:'未卸载',"value":2}
//   , {label:'未卸载/已卸载',"value":3}];
export function uninstall(){
  return allStatus['BOX_UNINSTALL_STATUS'];
}
export function getUninstall(value){
  let uninstall1=uninstall();
  for(let i=0;i<uninstall1.length;i++){
    if(value==uninstall1[i].value){
      return uninstall1[i].label;
    }
  }
  return '';
}

//qianType
// export const qianxiangType= [{
//   label: '硬币回收箱',
//   value: 1
// },{
//   label: '硬币找零箱',
//   value: 2
// },{
//   label: '纸币回收箱',
//   value: 3
// },{
//   label: '纸币找零箱',
//   value: 4
// },{
//   label: '废钞箱',
//   value: 5
// }];
export function qianxiangType(){
  return allStatus['MONEY_BOX_TYPE'];
}
export function getQianxiangType(value){
  let qianxiangType1=qianxiangType();
  for(let i=0;i<qianxiangType1.length;i++){
    if(value==qianxiangType1[i].value){
      return qianxiangType1[i].label;
    }
  }
  return '';
}

// export const selectReasons= [{
//   label: '平账',
//   value: 1
// },{
//   label: '待确定(报送协查等待协查回复)',
//   value: 2
// },{
//   label: '人为原因',
//   value: 3
// },{
//   label: '系统原因',
//   value: 4
// }];
export function selectReasons(){
  return allStatus['select_reasons'];
}
export function getSelectReason(value){
  let selectReasons1=selectReasons();
  for(let i=0;i<selectReasons1.length;i++){
    if(value==selectReasons1[i].value){
      return selectReasons1[i].label;
    }
  }
  return '';
}

/**
 * 通知状态-售票员使用
 * @type {({label: string, value: number}|{label: string, value: number}|{label: string, value: number})[]}
 */
// export const noticeStates= [{
//   label: '未通知',
//   value: 1
// },{
//   label: '已通知',
//   value: 2
// },{
//   label: '已申诉',
//   value: 3
// }];
export function noticeStates(){
  return allStatus['spy_notice_states'];
}
export function getNoticeStates(value){
  let noticeStates1=noticeStates();
  for(let i=0;i<noticeStates1.length;i++){
    if(value==noticeStates1[i].value){
      return noticeStates1[i].label;
    }
  }
  return '';
}

/**
 * 1：期限内申诉
 2：超限期内申诉
 * 申诉类型-售票员使用
 * @type {({label: string, value: number}|{label: string, value: number}|{label: string, value: number})[]}
 */
// export const appealType= [{
//   label: '期限内申诉',
//   value: 1
// },{
//   label: '超限期内申诉',
//   value: 2
// }];
export function appealType(){
  return allStatus['spy_appeal_type'];
}
export function getAppealTypes(value){
  let appealType1=appealType();
  for(let i=0;i<appealType1.length;i++){
    if(value==appealType1[i].value){
      return appealType1[i].label;
    }
  }
  return '';
}


/**
 *
 * 申诉状态，车站使用
 * @type {({label: string, value: number}|{label: string, value: number}|{label: string, value: number})[]}
 */
// export const appeal_status= [{
//   label: '待申诉',
//   value: 1
// },{
//   label: '已申诉',
//   value: 2
// },{
//   label: '申诉成功',
//   value: 3
// },{
//   label: '申诉失败',
//   value: 4
// },{
//   label: '撤销申诉',
//   value: 5
// }];
export function appeal_status(){
  return allStatus['car_appeal_status'];
}
export function getappeal_status(value){
  let appeal_status1=appeal_status();
  for(let i=0;i<appeal_status1.length;i++){
    if(value==appeal_status1[i].value){
      return appeal_status1[i].label;
    }
  }
  return '';
}


/**
 * 判断钱的类行
 * @param allData
 * @param head
 * @param headName
 * @param filename
 */
// export const SCOrLCOrACC=[{label:'结账单据',"value":1}, {label:'SC',"value":2},
// //   {label:'LC',"value":3}, {label:'ACC',"value":4},{label:'单台设备差异协查结果',value:5},{label:'分钱箱审核结果',value:6}];
export function SCOrLCOrACC(){
  return allStatus['DATA_SOURCE'];
}

//售票员票款差异审核 修改原因备注 REASON_REMARK
export function swAuConductorReasonRemark() {
	return allStatus['sw_au_conductor_reason_remark'];
}
//售票员票款差异审核 修改原因备注 REASON_REMARK  匹配不上时返回原值
export function getSwAuCondcutorReasonRemark(value){
  let reason =swAuConductorReasonRemark();
  for(let i=0;i<reason.length;i++){
	if(value==reason[i].value){
      return reason[i].label;
    }
  }
  return value;
}
export function getSCOrLCOrACC(value){
  let SCOrLCOrACC1=SCOrLCOrACC();
  for(let i=0;i<SCOrLCOrACC1.length;i++){
    if(value==SCOrLCOrACC1[i].value){
      return SCOrLCOrACC1[i].label;
    }
  }
  return '';
}

/**
 * 获取设备号
 * @param query
 */
export async function getSwPmDeviceOperationCodeList(query) {
  return  request({
    url: '/check/check/getSwPmDeviceOperationCodeList',
    method: 'post',
    params: query
  });
}

/**
 * 获取互联网售票机编号
 * @param query
 */
export async function getSwPmInternetTicketEquipmentCodeList(query) {
  return  request({
    url: '/check/check/getSwPmInternetTicketEquipmentCodeList',
    method: 'post',
    params: query
  });
}

/**
 * 获取互联网设备编号
 * @param v
 * @returns {string}
 */
export async function getEquipmentCode(query){
  return await request({
    url: '/check/check/getEquipmentCode',
    method: 'get',
    data: query,
    params: query
  });
}
/**
 * 获取人员角色信息
 * @param query
 */
export function getPersonRole(query) {
  return request({
    url: '/check/check/getPersonRole',
    method: 'post',
    params: query
  })
}

export function clearSelect(refs){
  refs.toggleSelection();
}

/**
 * 分转元
 * @param row
 * @param prop
 */
export function fenExYuangettoFixed(row,prop){
  if(!/(\d+|\\.+|\-)/g.test(row[prop])){
    return '';
  }
  let s = (row[prop]/100).toFixed(2);
  return s;
}
export function fenExYuangettoFixed7(row,prop){
  if(!/(\d+|\\.+|\-)/g.test(row[prop])){
    return '';
  }
  let s = (row[prop]/100).toFixed(7);
  return s;
}

export function fenExYuangettoFixed2(v){
  if(!/(\d+|\\.+|\-)/g.test(v)){
    return '';
  }

  let s = (v/100).toFixed(2);
  return s;
}
//不除100
export function fenExYuangettoFixed3(v){
  if(!/(\d+|\\.+|\-)/g.test(v)){
    return '';
  }

  let s = (v/1).toFixed(2);
  return s;
}

/**
 * 清空搜索条件的值
 */
export function setSearchFiledsEmpty(form){
  for(let key in form){
    if(key.indexOf("$")==0){
      return;
    }
    let re = new RegExp(/^[0-9]*$/);
    if((key.indexOf("Min")>0 || key.indexOf("Max")>0 || key.indexOf("min")>0 || key.indexOf("max")>0 || key.indexOf("Start")>0 || key.indexOf("End")>0) && (form[key] == undefined || re.test(form[key]))){
      form[key] = undefined;
      continue;
    }
    form[key]='';
  }
}

/**
 * 审核状态
 * @type {{label: string, value: number}[]}
 */
// export const audit_state_status=[{label:'是',value:1},{label:'否',value:0}];
export function audit_state_status(){
  return allStatus['audit_state_status'];
}
export function getAudit_state_status(value){
  let audit_state_status1=audit_state_status();
  for(let i=0;i<audit_state_status1.length;i++){
    if(value==audit_state_status1[i].value){
      return audit_state_status1[i].label;
    }
  }
  return '';
}

/**
 * 通知状态
 * @type {{label: string, value: number}[]}
 */
// export const notice_sate_status=[{label:'缺省',value:0},{label:'待通知',value:1},{label:'已通知',value:2},{label:'已确认',value:3},{label:'已申诉',value:4}];
export function notice_sate_status(){
  return allStatus['spy_notice_sate_status'];
}
export function getNotice_sate_status(value){
  let notice_sate_status1=notice_sate_status();
  for(let i=0;i<notice_sate_status1.length;i++){
    if(value==notice_sate_status1[i].value){
      return notice_sate_status1[i].label;
    }
  }
  return '';
}

/**
 * 补款状态
 * @type {{label: string, value: number}[]}
 */
// export const supp_state_status=[{label:'未加入补款状态',value:1},{label:'未补款',value:2},{label:'已补款',value:3},{label:'不需补款',value:4}];
export function supp_state_status(){
  return allStatus['spy_supp_state_status'];
}
export function getSupp_state_status(value){
  let supp_state_status1=supp_state_status();
  for(let i=0;i<supp_state_status1.length;i++){
    if(value==supp_state_status1[i].value){
      return supp_state_status1[i].label;
    }
  }
  return '';
}

/**
 * 有无乘客事务
 * @type {{label: string, value: number}[]}
 */
// export const is_have_bus_status=[{label:'有',value:1},{label:'无',value:0}];
export function is_have_bus_status(){
  return allStatus['spy_is_have_bus_status'];
}
export function getIs_have_bus_status(value){
  let is_have_bus_status1=is_have_bus_status();
  for(let i=0;i<is_have_bus_status1.length;i++){
    if(value==is_have_bus_status1[i].value){
      return is_have_bus_status1[i].label;
    }
  }
  return '';
}

/**
 * 数据来源
 * @type {{label: string, value: number}[]}
 */
// export const data_source_status=[{label:'调账差异',value:1},{label:'账面差异',value:2}];
export function data_source_status(){
  return allStatus['spy_data_source_status'];
}
export function getData_source_status(value){
  let data_source_status1=data_source_status();
  for(let i=0;i<data_source_status1.length;i++){
    if(value==data_source_status1[i].value){
      return data_source_status1[i].label;
    }
  }
  return '';
}

/**
 * 核对数据来源
 * @type {{label: string, value: number}[]}
 */
// export const sys_data_source_status=[{label:'SC',value:1},{label:'LC',value:2},{label:'ACC',value:3},{label:'售票员协查',value:4}];
export function sys_data_source_status(){
  return allStatus['spy_sys_data_source_status'];
}
export function getSys_data_source_status(value){
  let sys_data_source_status1=sys_data_source_status();
  for(let i=0;i<sys_data_source_status1.length;i++){
    if(value==sys_data_source_status1[i].value){
      return sys_data_source_status1[i].label;
    }
  }
  return '';
}


/**
 * 车站是否加入通知使用
 * @type {{label: string, value: number}[]}
 */
// export const chezhan_IS_ADD_NOTICE=[{label:'加入',value:1},{label:'未加入',value:0}];
export function chezhan_IS_ADD_NOTICE(){
  return allStatus['chezhan_is_add_notice'];
}
export function getChezhan_IS_ADD_NOTICE(value){
  let chezhan_IS_ADD_NOTICE1=chezhan_IS_ADD_NOTICE();
  for(let i=0;i<chezhan_IS_ADD_NOTICE1.length;i++){
    if(value==chezhan_IS_ADD_NOTICE1[i].value){
      return chezhan_IS_ADD_NOTICE1[i].label;
    }
  }
  return '';
}

/**
 * 车站票款差异使用-结算状态
 * @type {({label: string, value: number}|{label: string, value: number})[]}
 */
// export const chezhan_settle_status=[{label:'已结算',value:1},{label:'未结算',value:0}];
export function chezhan_settle_status(){
  return allStatus['chezhan_settle_status'];
}
export function getChezhan_settle_status(value){
  let chezhan_settle_status1=chezhan_settle_status();
  for(let i=0;i<chezhan_settle_status1.length;i++){
    if(value==chezhan_settle_status1[i].value){
      return chezhan_settle_status1[i].label;
    }
  }
  return '';
}

/**
 * 车站补款通知-补款状态
 * @type {({label: string, value: number}|{label: string, value: number})[]}
 */
// export const chezhan_bukuan_status=[{label:'补款',value:1},{label:'未补款',value:0}];
export function chezhan_bukuan_status(){
  return allStatus['is_sup_payment'];
}
export function getchezhan_bukuan_status(value){
  let chezhan_bukuan_status1=chezhan_bukuan_status();
  for(let i=0;i<chezhan_bukuan_status1.length;i++){
    if(value==chezhan_bukuan_status1[i].value){
      return chezhan_bukuan_status1[i].label;
    }
  }
  return '';
}

/**
 * 车站补款通知-协查状态
 * @type {({label: string, value: number}|{label: string, value: number})[]}
 */
// export const shoupiaoyuan_assitAuditSate=[{label:'缺省',value:0},{label:'待协查',value:1},{label:'协查中',value:2},{label:'已协查',value:3}];
export function shoupiaoyuan_assitAuditSate(){
  return allStatus['spy_assit_audit_state'];
}
export function getshoupiaoyuan_assitAuditSate(value){
  let shoupiaoyuan_assitAuditSate1=shoupiaoyuan_assitAuditSate();
  for(let i=0;i<shoupiaoyuan_assitAuditSate1.length;i++){
    if(value==shoupiaoyuan_assitAuditSate1[i].value){
      return shoupiaoyuan_assitAuditSate1[i].label;
    }
  }
  return '';
}
export function getMappingStatusArray(type){
  let res=localStorage.getItem("allStatus");
  res=JSON.parse(res);
  return res[type];
}

export function getMappingStatus(type,value){
  let res=localStorage.getItem("allStatus");
  res=JSON.parse(res);
  for(let i=0;i<res[type].length;i++){
    if(value==res[type][i].value){
      return   res[type][i].label;

    }
  }

  return '';
}

/**
 * 差异金额排序，分为大于零，小于零，等于零的
 */
export function sortWithDiffMoney(rows,field) {
  let lgZero=[];
  let eqZero=[];
  let lowZero=[];
  let other=[];
  for(let i=0;i<rows.length;i++){
    let one=rows[i];
    if(!/[\d+\.-]/g.test(one[field]) && (one[field]=='' || one[field]==null || one[field]==undefined)) {
      other.push(one);
    }else if(Number(one[field])>0){
      lgZero.push(one)
    }else if(Number(one[field])==0){
      eqZero.push(one);
    }else if(Number(one[field])<0){
      lowZero.push(one);
    }else{
      other.push(one);
    }
  }
  console.log(rows);
  return lgZero.concat(lowZero).concat(eqZero).concat(other);
}

export function getSysDept(query){
  return  request({
    url: '/check/check/getSysDept',
    method: 'post',
    data: query,
    params: query
  });
}

/**
 * 获取报表
 * @param query
 */
export function getSwPmReportPath(query){
  return  request({
    url: '/check/check/getSwPmReportPath',
    method: 'post',
    data: query,
    params: query
  });
}

/**
 * 检验用户名密码
 * @param query
 */
// export function checkAccountPassword(query){
//   return  request({
//     url: '/check/check/checkAccountPassword',
//     method: 'post',
//     data: query,
//     params: query
//   });
// }

/**
 * 检验用户名密码
 * @param query
 */
export function checkAccountPassword(query){
  return  request({
    url: '/admin/user/check/'+query.account+'/'+query.password,
    method: 'get',
    data: query,
    params: query
  });
}


/**
 * 是否是长周期
 * @param query
 */
export function isLongPeriodSettlement(query){
  return  request({
    url: '/check/SRJS/isLongPeriodSettlement',
    method: 'get',
    data: query,
    params: query
  });
}


export function numToTwoPoint(v){
  if(!/(\d+|\\.+|\-)/g.test(v)){
    return '';
  }
  let s = v.toFixed(2);
  return s;
}

/**
 * 回复期限
 * @param v
 * @returns {string}
 */
export async function getReplayPeriod(query){
  return await request({
    url: '/check/check/getReplayPeriod',
    method: 'get',
    data: query,
    params: query
  });
}

/**
 * 获取用户数据通过编号
 * @param v
 * @returns {string}
 */
export async function getUserDataByJobNo(query){
  return await request({
    url: '/check/check/getUserDataByJobNo',
    method: 'get',
    data: query,
    params: query
  });
}

/**
 * 获取钱箱编号
 * @param v
 * @returns {string}
 */
export async function getTvmCashBoxCode(query){
  return await request({
    url: '/check/check/getTvmCashBoxCode',
    method: 'get',
    data: query,
    params: query
  });
}
